package com.zhenwei.zscm.config;

import jakarta.annotation.PostConstruct;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
@Getter
@Setter
@Configuration
public class SystemConfig {
    @Value("${system.reload-api-list}")
    private boolean _reloadApiList;
    @Value("${system.file-base-dir}")
    private String _fileBaseDir;

    public static boolean reloadApiList;
    public static String fileBaseDir;
    @PostConstruct
    public void init(){
        reloadApiList = is_reloadApiList();
        fileBaseDir = get_fileBaseDir();
    }
}
